<template>
  <div class="wrap">
    <div class="text">404...</div>
    <div>
      <el-button type="primary" size="default" @click="goHome">
        返回首页
      </el-button>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'
const $router = useRouter()
const goHome = () => {
  $router.replace('/home')
}
</script>

<style lang="scss" scoped>
.wrap {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  .text {
    color: rgb(63, 167, 215);
    font-size: 172px;
    font-weight: 500;
    margin-bottom: 20px;
  }
}
</style>
